package com.greyu.ysj.mapper;

import com.greyu.ysj.entity.CbtRecharge;
import com.greyu.ysj.entity.CbtRechargeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CbtRechargeMapper {
    long countByExample(CbtRechargeExample example);

    int deleteByExample(CbtRechargeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CbtRecharge record);

    int insertSelective(CbtRecharge record);

    List<CbtRecharge> selectByExample(CbtRechargeExample example);

    CbtRecharge selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CbtRecharge record, @Param("example") CbtRechargeExample example);

    int updateByExample(@Param("record") CbtRecharge record, @Param("example") CbtRechargeExample example);

    int updateByPrimaryKeySelective(CbtRecharge record);

    int updateByPrimaryKey(CbtRecharge record);
    //************************************************************
    double selectRechargeAmount(Integer userId, Integer coinId);
    
    List<CbtRecharge> selectRechargeRecordByuserId(Integer userId);
    
    int countRechargeRecord(Integer userId, Integer coinId);
    
}